<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="copyright" content="www.apicloud.com" />
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<title>舆情工作平台登陆</title>
<link rel="stylesheet" type="text/css" href="../css/api.css" />
<script type="text/javascript" src="../script/jquery.min.js"></script>
<style>
	html {height: 100%;}
	body {height: 100%;width:100%;background-image:url(../image/login/log_bg.png);background-size: 100%;}
	
	input {height: 50px;font-size: 18px;color: #8E8C8C;width: 80%;}
	input::-webkit-input-placeholder {color: #ccc;} 
	.top_logo{ width:90%; margin:0 5%;}
	.main_logo{ width:60%; margin:0 20%;}
	 
	.email,.passwd {/*margin-top: 3px;*/background: #fff;}
	.passwd img, .email img {vertical-align: top;}
	.item { width:90%; margin:0 5%;position: relative;}
	.email{-webkit-border-radius: 5px 5px 0px 0px;  border: 1px solid #acacac;}
	.passwd{-webkit-border-radius: 0px 0px 5px 5px; border-right: 1px solid #acacac;border-left: 1px solid #acacac; border-bottom: 1px solid #acacac;}
	/*.email, .passwd, .btn {margin:3px 10px;}*/
	.btn {margin:3px 10px;}
	.btn {background: red;color: #fff;height: 40px; text-align: center; line-height: 40px; font-size: 20px;margin-top: 20px;border-radius: 5px;}
 	.email img {width: 25px; margin-top: 15px; margin-left: 10px; margin-right: 9px;}
	.passwd img {height: 25px;margin-top: 10px; margin-left: 10px;margin-right: 10px;}
	 
	/* 底部样式 */
	.bottom {/*position: absolute;bottom: 0;*/width: 100%; text-align: center;/*padding-bottom: 20px;*/font-size: 12px;}     
    .bottom>span {line-height: 26px;color: #999999; font-size: 1.2em;}
    .bottom>span>a{line-height: 26px;color: blue; font-size: 1.2em;}
	.bottom>span>a:hover{color: #999999;}
 
	input {outline: none;}
</style>
</head>
<body>
	 
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/api.data.js"></script>
<script type="text/javascript" src="../script/jquery.md5.js"></script>
<script type="text/javascript">
   apiready = function() {
       //执行分享
        checkform();                    
     }
  
    
	//点击登录
	function checkform() {
	    var url = api.pageParam.url;//获取操作内容id  
        var title = api.pageParam.title;//获取操作内容id  
        var content = api.pageParam.content;//获取操作内容id  
	     		 var weiXin = api.require('weiXin');
			weiXin.registerApp(
			    function(ret,err){
			        if (ret.status) {
			            weiXin.sendRequest({
						    scene:'session',
                            contentType:'web_page',
                            title:title,
                            description:content,
                            thumbUrl:'widget://image/btn/yqzyz.png',
                            contentUrl: url
						},function(ret,erra){  
						    if(ret.status){
						        api.alert({title: '系统提示',msg: '发表成功', buttons: ['确定']});
						        api.closeFrame({
	                                name: 'shareFrame'
                                });
						    } else{
						        //api.alert({title: '系统提示',msg: erra.code,buttons: ['确定']});
						        api.closeFrame({
	                                name: 'shareFrame'
                                });
						    };
						});
			        } else{
			            api.alert({title: '系统提示',msg: err.msg,buttons: ['确定']}); 
			            api.closeFrame({
	                                name: 'shareFrame'
                                });
			        }
			    }
			); 
	}

</script>
</html>